package com.xiangwuyue.exam.controller;

import com.xiangwuyue.exam.pojo.User;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName User1Controller
 * @Description TODO
 * @Author wuning
 * @Date 2023-01-19 下午 03:28
 * @Version 1.0
 */
@RestController
@RequestMapping("/users1")
public class User1Controller {

    @GetMapping
    @ResponseBody
    public String login2(User user, String username, String password){
        System.out.println(user.getUsername());
        System.out.println(user.getPassword());
        System.out.println(username);
        System.out.println(password);
        return "SUCCESS";
    }
}
